package com.bbs.fegin;

import com.bbs.pojo.Result;
import com.bbs.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "user-service")
public interface UserClient {
    @GetMapping("/api/sys/user-details/{username}")
    Result<User> getUser(@PathVariable("username") String username);
}
